package com.mes.datasource.vo;

import com.yy.base.util.StringUtil;
import java.util.Map;

public class DataSourceColumnVO {
	private String id = null;
	private String columnName = null;
	private String name = null;
	private String dataType = null;
	private String description = null;

	private DataSourceColumnVO() {
	}
	public static DataSourceColumnVO create(Map map) {
		if (map == null) {
			DataSourceColumnVO vo = new DataSourceColumnVO();
			vo.setId((String)map.get("Emes_DATASOURCE_COLUMN_ID"));
			vo.setColumnName((String)map.get("COLUMN_NAME"));
			vo.setName((String)map.get("NAME"));
			vo.setDataType((String) StringUtil.clobToString(map.get("DATA_TYPE")));
			vo.setDescription((String)map.get("DESCRIPTION"));

			return vo;
		}
		return null;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
